
import request from '../util/request'
export const addadminRequest = (data ) => {
    return request.post('/addAdmin', data)
}

// 查询管理员的请求
export const adminListRequest =  ()=>{
    return request.get('/adminList')
}

// 删除管理员的请求
export const deleteadminRequest = (adminName)=>{
    return request.delete('/deleteadmin',{
        params:{
            adminName,
        }
    })
}